#LDFLAGS = "-X main.buildstamp=`date '+%Y-%m-%d_%I:%M:%S'` -X main.githash=`git rev-parse HEAD`"
LDFLAGS = "-w -s -X main.BUILD_DATE=`date '+%Y-%m-%d_%I:%M:%S'` -X main.GitHash=`git rev-parse HEAD` -X main.VERSION=`git describe --tag --always`"

build:
	go build -ldflags ${LDFLAGS} -o worker-agent
tar:build
	tar -cf squirrel-worker.tar.gz worker-agent config.toml

run:build
	./worker-agent